From: Georges Basile Stavracas Neto Date: Fri, 22 May 2020 17:07:10 +0000 (-0300) Subject: appDisplay: Allow a slighly bigger area for drag overshoot X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~222 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=68203e7091359c5886788b74c85b763364c1fa34;p=gnome-shell.git appDisplay: Allow a slighly bigger area for drag overshoot Now that we don't have the Frequent tab anymore, and subsequently the buttons to switch tabs, the app grid fill all the way to the bottom, leaving no room for drag overshoot. Add a 20px (i.e. OVERSHOOT_THRESHOLD) area at the bottom of the grid where dragging actually scrolls to the next page. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1271 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 98b2e9cf4..2ada45406 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -774,7 +774,7 @@ class AppDisplay extends BaseAppView { _handleDragOvershoot(dragEvent) { let [, gridY] = this.get_transformed_position(); let [, gridHeight] = this.get_transformed_size(); - let gridBottom = gridY + gridHeight; + const gridBottom = gridY + gridHeight - OVERSHOOT_THRESHOLD; // Already animating if (this._adjustment.get_transition('value') !== null)